<template>
  <div class="no-res">
    <el-result icon="error" title="错误提示" subTitle="啊哦，迷路了？">
      <template slot="extra">
        <el-button type="primary" size="medium" @click="toHomePage">去主页</el-button>
      </template>
    </el-result>
  </div>
</template>

<script>
export default {
  name: "Error",
  methods:{
    toHomePage(){
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>

</style>
